package com.rmondjone.face;

import java.io.IOException;

import okhttp3.Interceptor;
import okhttp3.Request;
import okhttp3.Response;


/**
 * copyright：
 * author：
 * Version：1.0
 * creation date：2019/8/8
 * describe： 公共参数 设置Cookies
 */
public class HeadInterceptor implements Interceptor {

    @Override
    public Response intercept(Chain chain) throws IOException {
        final Request.Builder builder = chain.request().newBuilder();
//        builder.addHeader("device_type", AppUtil.isTabletDevice(MyApplication.application));
//        Log.e("msg", "-------- device_type---" + AppUtil.isTabletDevice(MyApplication.application));

        builder.addHeader("mobileType", "1");
//
        return chain.proceed(builder.build());

    }
}
